package com.taiyi.crm.service;

import com.taiyi.crm.pojo.entity.Permission;
import com.taiyi.crm.pojo.vo.LayUISelectMVO;
import com.taiyi.crm.util.LayUITableResult;

import java.util.List;

public interface IPermissionService {

    LayUITableResult list(Integer page, Integer limit, Permission permission);

    void deleteById(Integer id);

    void deleteAll(String ids);

    void insert(Permission permission);

    Permission selectByPrimaryKey(Integer permissionId);

    List<LayUISelectMVO> selectAllPermisssions();

    List<Permission> selectByUserId(Integer id);
}